package com.google.code.virtualhockey.vhx.server.servlet.rest

import scala.Some

/**
 * Lists all the roles that may
 */
object RestAuthRole extends Enumeration {

  case class AuthRoleVal( val role: Option[String] = None ) extends Val

  /** Refers to any role. User does not need to be authenticated. */
  val ANY = AuthRoleVal

  /** Refers to any role. User must be authenticated and known. */
  val AUTHENTICATED = AuthRoleVal

  /** User must be an administrator. */
  val ADMIN = AuthRoleVal( Some( "ADMIN" ) )
}
